﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using PLM.ConfigurationCenter.Model;
using SqlSugar;

namespace PLM.ConfigurationCenter.Service {
    /// <summary>
    /// 
    /// </summary>
    public class TaskService : Repository<TaskModel> {
        /// <summary>
        /// 获取列表
        /// </summary>
        /// <returns></returns>
        public List<TaskModel> GetBackUpList() {
            var list = CommQuery();
            return list;
        }
        /// <summary>
        /// 编辑
        /// </summary>
        public bool EditBackUp(TaskModel model) {
            return Update(model);
        }
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public bool DelBackUp(string id) {
            return DeleteById(id);
        }
    }
}
